package com.woniu.woniu_bx.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 帮助中心问答实体类
 *
 * @author sjy
 * @create 2022-08-27 15:14
 */
@Data
@TableName("bx_helper_ques")
public class HelperQues {
    //主键
    private Integer id;
    //问题名称
    @NotEmpty
    private String name;
    //问题答案
    @NotEmpty
    private String answer;
    //隶属类别
    @NotNull
    private Integer categoryId;
    //类别名称
    @TableField(exist = false)
    private String categoryName;
}
